package ioperation;

import Book.Booklist;

/**
 * Created with Interllij IDEA.
 * Descriptiption:
 * User: 王澄慧
 * Date: 2022-04-16
 * Time: 20:21
 */
public class Exitiperation implements IPeration{
    @Override
    public void work(Booklist booklist) {
        System.out.println("退出系统");
        int currentSize = booklist.getUserSize();
        for (int i = 0; i < currentSize; i++) {
            booklist.setBooks(i,null);
        }
        System.exit(0);
    }
}
